/*
 * Buzzer.h
 *
 *  Created on: 30.01.2011
 *      Author: Tavin
 */

#ifndef BUZZER_H_
#define BUZZER_H_


typedef struct{

	uint16_t frequency;
	uint16_t pulseWidth;

	int8_t frequencyDelta;
	int8_t pulseWidthDelta;



	uint8_t duration;
} BuzzerSound_t;


typedef struct{

	uint16_t durationCounter;
	uint8_t activeSound;
} BuzzerData_t;


typedef struct
{

	uint8_t duration;
}SoundData_t;



#endif /* BUZZER_H_ */




void Buzzer_init();
void Buzzer_playSound();
void Buzzer_do();

void Buzzer_on();
void Buzzer_off();

